<%--
  Created by IntelliJ IDEA.
  User: VictoryZ
  Date: 2022/3/9
  Time: 21:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<h1>登录</h1>

<form action="login" method="post">
    用户名：<input type="text" name="username"><br>
    密码：<input type="password" name="password"><br>
    <input type="submit" value="登录">
</form>
<p>当前在线人数：<%=session.getAttribute("count1")%></p>
<p>已登录用户数：<%=request.getSession().getServletContext().getAttribute("count2")%></p>
</body>
</html>
